<?php

/**
 * 文件注释
 *
 * Author: Liam
 * Datetime: 11/26/17 00:00 PM
 */

namespace ApiBundle\Controller;

use BaseBundle\Controller\BaseController;
use Symfony\Component\BrowserKit\Request;

class ApiController extends BaseController
{

//    登录
    public function loginAction()
    {
        $conn = $this->getDoctrine()->getConnection();


        return $this->jsonResponse('操作成功', 0);
    }

//    注册
    public function registerAction(Request $request)
    {
        $username = $this->get('username');
        $conn = $this->getDoctrine()->getConnection();

        return $this->jsonResponse('操作成功', 0);
    }
}